/* XXX
package com.starshineworks.util;

import java.util.List;
import java.util.Iterator;

import com.starshineworks.entities.*;
import com.starshineworks.util.*;

public class FormatList<Type> {
    
    private String       _class;
    private List<Object> _list;
    
    public FormatList(List list) {
        this._list = list;
    }
    
    public String createSelectionList () {
        if (_list.isEmpty()) {
            return "<p>No entries</p>";
        }
        String y = "<p><ul style='list-style-type:none;'>";
        Iterator it = _list.iterator();
        while(it.hasNext())
        {
            EntityE obj = (EntityE)it.next();
            String link = SswUtil.getPageOfEntity(obj)+"?element="+obj._id;            
            y += "<li>";
            y += "<button onclick='window.location.href=\"";
            y += link;
            y += "\"' >Select</button> ";
            y += obj.toString();
            y += "</li>";     
        }
        y += "</ul></p>";
        return y;
    }
}
* 
* */
